home *** CD-ROM | disk | FTP | other *** search
/ SuperModels in the Rainforest / SuperModels in the Rainforest.iso / rain.dxr / 00005_B Handlers.ls < prev    next >
Encoding:
Text File  |  1995-10-13  |  4.1 KB  |  136 lines

  1. on bGoOnGirl
  2.   global giCurrentGirl, giVidSprite, giVid2Sprite, gsCleanUpHandler, giNavNumber, giVid3Sprite
  3.   cursor(0)
  4.   set giNavNumber to 1
  5.   set iTempFrame to label("GirlScreen") + giCurrentGirl
  6.   set the visible of sprite giVidSprite to 0
  7.   set the visible of sprite giVid2Sprite to 0
  8.   set the visible of sprite giVid3Sprite to 0
  9.   set the visible of sprite 17 to 0
  10.   set the visible of sprite 18 to 0
  11.   set the visible of sprite 2 to 0
  12.   go(iTempFrame)
  13.   set the visible of sprite 23 to 1
  14.   set the visible of sprite 24 to 1
  15.   set gsCleanUpHandler to "bCleanUpGirl"
  16. end
  17.  
  18. on bSetGirlBackground
  19.   global giCurrentGirl, giBackgroundSprite
  20.   set stempCast to "bGirl" & giCurrentGirl
  21.   set the castNum of sprite giBackgroundSprite to the number of cast stempCast
  22. end
  23.  
  24. on bsetGirlIcon aDirection
  25.   global giIconSprite, giCurrentGirl, giFirstGirlIcon
  26.   set the castNum of sprite giIconSprite to giFirstGirlIcon + giCurrentGirl - 1
  27.   if aDirection = -1 then
  28.   else
  29.     if aDirection = 1 then
  30.     end if
  31.   end if
  32.   if aDirection <> 0 then
  33.     bSetGirlPoster()
  34.     bSetGirlBackground()
  35.     updateStage()
  36.     bGetGirlVideo(1)
  37.   end if
  38. end
  39.  
  40. on bNextGirlIcon
  41.   global giMaxGirls, giCurrentGirl
  42.   if (giCurrentGirl + 1) > giMaxGirls then
  43.     set giCurrentGirl to 1
  44.   else
  45.     set giCurrentGirl to giCurrentGirl + 1
  46.   end if
  47.   bsetGirlIcon(1)
  48. end
  49.  
  50. on bPrevGirlIcon
  51.   global giMaxGirls, giCurrentGirl
  52.   if (giCurrentGirl - 1) < 1 then
  53.     set giCurrentGirl to giMaxGirls
  54.   else
  55.     set giCurrentGirl to giCurrentGirl - 1
  56.   end if
  57.   bsetGirlIcon(-1)
  58. end
  59.  
  60. on bGetGirlVideo aIndex
  61.   global giCurrentGirl, glGirlNames, giVidSprite, giVid3Sprite, giVid2Sprite, gsMovieDir, giTempVidCast, septracker, purple, tempCast
  62.   cursor(4)
  63.   set sTemp to getAt(glGirlNames, giCurrentGirl)
  64.   set purple to purple + 1
  65.   if purple = 1 then
  66.     set sMovieName to gsMovieDir & sTemp & septracker & sTemp & aIndex & ".mov"
  67.     set the fileName of cast giTempVidCast to sMovieName
  68.   end if
  69.   put giTempVidCast
  70.   set the visible of sprite giVid2Sprite to 0
  71.   if the machineType = 256 then
  72.     set the movieRate of sprite 4 to 0
  73.   end if
  74.   set the visible of sprite giVid3Sprite to 0
  75.   if the machineType = 256 then
  76.     set the movieRate of sprite 5 to 0
  77.   end if
  78.   set the visible of sprite giVidSprite to 1
  79.   set the movieTime of sprite 3 to 0
  80.   set the movieRate of sprite 3 to 1
  81.   updateStage()
  82.   cursor(0)
  83. end
  84.  
  85. on bGetGirlVideo2 aIndex
  86.   global giCurrentGirl, glGirlNames, giVid2Sprite, giVid3Sprite, giTempVid2Cast, giVidSprite, gsMovieDir, giTempVidCast, giNavNumber, septracker, orange
  87.   cursor(4)
  88.   set sTemp to getAt(glGirlNames, giCurrentGirl)
  89.   set orange to orange + 1
  90.   if orange = 1 then
  91.     set sMovieName to gsMovieDir & sTemp & septracker & sTemp & aIndex & giNavNumber & ".mov"
  92.     set the fileName of cast giTempVid2Cast to sMovieName
  93.   end if
  94.   set the visible of sprite giVidSprite to 0
  95.   if the machineType = 256 then
  96.     set the movieRate of sprite 3 to 0
  97.   end if
  98.   set the rect of sprite giVid2Sprite to rect(-1000, -1000, -800, -800)
  99.   set the visible of sprite giVid2Sprite to 1
  100.   set the movieTime of sprite 4 to 0
  101.   set the movieRate of sprite 4 to 1
  102.   set the visible of sprite giVid3Sprite to 0
  103.   if the machineType = 256 then
  104.     set the movieRate of sprite 5 to 0
  105.   end if
  106.   updateStage()
  107.   cursor(0)
  108. end
  109.  
  110. on bGetGirlVideo3 aIndex
  111.   global giCurrentGirl, glGirlNames, giTempVid3Cast, giVidSprite, giVid3Sprite, giVid2Sprite, gsMovieDir, giTempVidCast, septracker, yellow
  112.   cursor(4)
  113.   set sTemp to getAt(glGirlNames, giCurrentGirl)
  114.   set yellow to yellow + 1
  115.   if yellow = 1 then
  116.     set sMovieName to gsMovieDir & sTemp & septracker & sTemp & aIndex & ".mov"
  117.     set the fileName of cast giTempVid3Cast to sMovieName
  118.   end if
  119.   set the visible of sprite giVid2Sprite to 0
  120.   if the machineType = 256 then
  121.     set the movieRate of sprite 4 to 0
  122.   end if
  123.   set the visible of sprite giVid3Sprite to 1
  124.   set the movieTime of sprite 5 to 0
  125.   set the movieRate of sprite 5 to 1
  126.   set the visible of sprite giVidSprite to 0
  127.   if the machineType = 256 then
  128.     set the movieRate of sprite 3 to 0
  129.   end if
  130.   updateStage()
  131.   cursor(0)
  132. end
  133.  
  134. on bCleanUpGirl
  135. end
  136.